package com.crab.c01array;


/**
 * @author zfd
 * @version v1.0
 * @date 2022/4/28 16:48
 */
public class Test01 {
    public static void main(String[] args) {
        // 随机读取
        int[] array = new int[]{3, 1, 4, 6, 7};
        System.out.println(array[3]);
        array = new int[]{3, 1, 4, 6, 7};
        // 随机更新
        array[3] = 100;
        System.out.println(array[3]);
    }
}
